<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>导航设置 -  Powered by shopping</title>
<meta name="keywords" content="$!config.keywords" />
<meta name="description" content="$!config.description" />
<meta name="generator" content="shopping 2.0" />
<meta name="author" content="www.shopping.com">
<meta name="copyright" content="shopping Inc. All Rights Reserved">
<link href="$!webPath/resources/style/system/front/default/css/public.css" type="text/css" rel="stylesheet" />
<link href="$!webPath/resources/style/system/front/default/css/user.css" type="text/css" rel="stylesheet" />
<link  href="$!webPath/resources/style/common/css/jquery-ui-1.8.22.custom.css" type=text/css rel=stylesheet>
<script src="$!webPath/resources/js/jquery-1.6.2.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.zh.cn.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script charset="utf-8" src="$!webPath/resources/editor/kindeditor.js"></script>
<script charset="utf-8" src="$!webPath/resources/editor/lang/zh_CN.js"></script>
<script>
 jQuery(document).ready(function(){
	var options = {
        cssPath : '$!webPath/resources/editor/themes/default/default.css',
        filterMode : true,
		uploadJson:'$!webPath/upload.htm',
		width : '700px',
		height:'400px'
    };
	var editor = KindEditor.create('#content',options); 
	//
	jQuery("#theForm").validate({
        rules:{
	  	  title:{required :true}
	  	 },
	    messages:{
	  	  title:{required:"标题不能为空"}
	  	}
     });
	//
	jQuery(":radio[value=$!obj.display]").attr("checked",true);
	jQuery(":radio[value='$!obj.win_type']").attr("checked",true);
 });
</script>
</head>
<body>
$!httpInclude.include("/top.htm")
<div class="main">
  $!httpInclude.include("/seller/nav_head.htm")
  <div class="user_center">
    <table width="1000" border="0" cellspacing="0" cellpadding="0" class="user_table">
      <tr>
           $!httpInclude.include("/seller/nav.htm?op=store_nav")
        <td id="centerbg" valign="top">
         <div class="buyer_position"><div class="buyer_p_box"><a href="$!webPath/seller/index.htm">卖家中心</a> > <span>新增导航</span></div></div>
        <div class="productmain">
            <div class="ordernav">
              <ul class="orderul">
                <li class="other"><a href='$!webPath/seller/store_nav.htm'>导航列表</a></li>
                <li #if(!$!edit)class="this"#end><a href='$!webPath/seller/store_nav_add.htm'>新增导航</a></li>
                #if($!edit)
                 <li class="this"><a href='$!webPath/seller/store_nav_edit.htm?id=$!obj.id'>编辑导航</a></li>
                #end
              </ul>
            </div>
            <div class="ordercon">
              <div class="addnav">
                <form action="$!webPath/seller/store_nav_save.htm" method="post" name="theForm" id="theForm">
                  <table width="98%" border="0" cellspacing="0" cellpadding="0" class="addnavtable">
                    <tr>
                      <td width="195" align="right"><input name="id" type="hidden" id="id" value="$!obj.id" />
                      导航名称：</td>
                      <td width="510" class="px10"><span class="setinput">
                        <input name="title" type="text" id="title" value="$!obj.title" />
                      </span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">导航序号：</td>
                      <td  class="px10"><span class="setinput">
                        <input name="sequence" type="text" id="sequence" value="$!obj.sequence" />
                        序号越小越靠前
                      </span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">导航URL：</td>
                      <td  class="px10"><span class="setinput">
                        <input name="url" type="text" id="url" value="$!obj.url" />
                        URL需要带http://,输入URL后导航内容不显示</span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">是否显示：</td>
                      <td  class="px10"><input name="display" type="radio" id="display" value="true" checked="checked"  />
                        是
                          <input type="radio" name="display" id="display" value="false" />
                        否</td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">打开方式：</td>
                      <td  class="px10"><input name="win_type" type="radio" id="win_type"  value="cur_win" checked="checked"  />
本页面
  <input type="radio" name="win_type" id="win_type" value="new_win"/>
  新窗口</td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">导航内容：</td>
                      <td  class="px10"><span class="setinput">
                        <textarea name="content" id="content">$!obj.content</textarea>
                        </span></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td class="px10"><span class="setsub">
                        <input type="submit"  value="保存" style="cursor:pointer;"/>
                        </span></td>
                    </tr>
                  </table>
                </form>
              </div>
            </div>
          </div></td>
      </tr>
    </table>
  </div>
  $!httpInclude.include("/footer.htm")
</div>
</body>
</html>
